import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import '@/assets/scss/reset.scss'
// 1366设计稿适配iPad
import rem from '@/assets/js/rem'
// 1366设计稿适配iPad
rem.getSize();


import VueAwesomeSwiper from 'vue-awesome-swiper'

// require styles
import 'swiper/css/swiper.css'




// 全局使用
Vue.use(VueAwesomeSwiper, /* { default global options } */)

// 全局前置守卫
router.beforeEach((to: any, from: any, next: any) => {
  /* 路由发生变化修改页面title */
  if (to.meta.title) {
    document.title = to.meta.title;
  }
  next();
});


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
